var Feng = {
    ctxPath: "",
    addCtx: function (path) {
        if (this.ctxPath == ""){
            this.ctxPath = path;
        }
    } ,
    log: function (msg) {
        console.log(msg);
    },
    alert: function (info, iconIndex) {
        parent.layer.msg(info, {
            icon: iconIndex
        });
    },
    info: function (info) {
        Feng.alert(info, 0);
    },
    success: function (info) {
        Feng.alert(info, 1);
    },
    error: function (info) {
        Feng.alert(info, 2);
    },
};

//获取项目地址
$(function () {
    var baseUrl = localStorage.getItem("baseUrl");
    if (baseUrl === '/') baseUrl = '';
        Feng.addCtx(baseUrl);
});